using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Transaction;
namespace Thaire.Investment.Repository
{

    class EquityHeaderMap : ClassMap<EquityHeader>
    {

        public EquityHeaderMap()
        {
            Table("EQUITY_HEADER");
            Id(x => x.EquityHeaderID, "EQUITY_HEADER_ID").GeneratedBy.Identity();

            Map(x => x.EquityCompanyName, "EQUITY_COMPANY_NAME");
            Map(x => x.EquityCompanyID, "EQUITY_COMPANY_ID");
            Map(x => x.MaturityStatus, "MATURITY_STATUS");
            Map(x => x.FullNameEN, "FULL_NAME_EN");
            Map(x => x.FullNameTH, "FULL_NAME_TH");
            Map(x => x.EquityTypeName, "EQUITY_TYPE_NAME");
            Map(x => x.EquityTypeID, "EQUITY_TYPE_ID");
            Map(x => x.EquitySectorGroup, "EQUITY_SECTOR_GROUP");
            Map(x => x.EquitySector, "EQUITY_SECTOR");
            Map(x => x.Symbol, "SYMBOL");
            Map(x => x.ListedStatus, "LISTED_STATUS");
            Map(x => x.Broker, "BROKER");
            Map(x => x.BrokerID, "BROKER_ID");
            Map(x => x.CapitalRegistered, "CAPITAL_REGISTERED");
            Map(x => x.CapitalPaid, "CAPITAL_PAID");
            Map(x => x.InvolvedPartyTypeName, "INVOLVED_PARTY_TYPE_NAME");
            Map(x => x.BidPriceDate, "BID_PRICE_DATE");
            Map(x => x.BidPricePerUnit, "BID_PRICE_PER_UNIT");
            Map(x => x.BVPriceDate, "BV_PRICE_DATE");
            Map(x => x.BVPricePerUnit, "BV_PRICE_PER_UNIT");
            Map(x => x.FVPriceDate, "FV_PRICE_DATE");
            Map(x => x.FVPricePerUnit, "FV_PRICE_PER_UNIT");
            Map(x => x.ClosePriceDate, "CLOSE_PRICE_DATE");
            Map(x => x.ClosePricePerUnit, "CLOSE_PRICE_PER_UNIT");
            Map(x => x.LiquidityTierIPercent, "LIQUIDITY_TIER_I_PERCENT");
            Map(x => x.LiquidityTierIIPercent, "LIQUIDITY_TIER_II_PERCENT");
            Map(x => x.LiquidityLowLiquidityPercent, "LIQUIDITY_LOW_LIQUIDITY_PERCENT");
            Map(x => x.RelatedID, "RELATED_ID");
            Map(x => x.RemarkOic, "REMARK_OIC");
            Map(x => x.RemainUnit, "REMAIN_UNIT");
            Map(x => x.CreateDate, "CREATE_DATE");
            Map(x => x.CreateBY, "CREATE_BY");
            Map(x => x.ModifyDate, "MODIFY_DATE");
            Map(x => x.ModifyBY, "MODIFY_BY");
            Map(x => x.ParUnit, "PAR_UNIT");
            Map(x => x.ParAmount, "PAR_AMOUNT");

        }


    }

}